package com.igeek.config.ch01;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @Controller: 标识表现层组件
 * @Controller 标注当前这个类是一个控制层的类
 */

@Controller
public class UserController {
    @Autowired(required = false)
    private UserService userService;

    public void registerUser(){
        System.out.println("UserController registerUser() ...");
        userService.register();
    }
}
